/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grafrajz.utils;


/**
 *
 * @author adam_fejes_dell
 * Speciális gráf melyben nem lehet ún. körök.
 */
public class Tree extends Graph{

    public Tree(boolean isWeightened, boolean isDirected) {
        super(isWeightened, isDirected);
    }

    @Override
    public boolean addEdge(Edge e) {

            if(super.algo.noCircle(this, e)){
                return super.addEdge(e);
            }
            else
                return false;        
    }
    @Override
    public boolean addNode(Node n) {
        return super.addNode(n);
    }



    
}
